//
//  CycCarModel.h
//  Cycling
//
//  Created by cjg.mini on 2023/3/10.
//

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>

NS_ASSUME_NONNULL_BEGIN

@interface CycCarModel : NSObject

@property (nonatomic, strong) NSString *carName;        // 名称
@property (nonatomic, strong) NSString *bleName;        // 蓝牙名称
@property (nonatomic, strong) NSString *sn;             // sn
@property (nonatomic, strong) NSString *mac;             
@property (nonatomic, strong) NSString *model;
@property (nonatomic, assign) NSUInteger curr_dangwei;
@property (nonatomic, assign) CGFloat curr_sudu;
@property (nonatomic, assign) CGFloat avg_sudu;
@property (nonatomic, assign) CGFloat zuida_sudu;
@property (nonatomic, assign) NSUInteger electricity;
@property (nonatomic, assign) CGFloat totalmileage;
@property (nonatomic, assign) CGFloat canmileage;
@property (nonatomic, assign) CGFloat danci;

@property (nonatomic, strong) CBPeripheral *peripheral;
- (instancetype)initWithPeripheral:(CBPeripheral *)peripheral;
- (void)getCarMessageWithCmd:(uint8_t)cmd retBlock:(void(^)(NSData *, NSError *))retBlock;

@end

NS_ASSUME_NONNULL_END
